<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd ">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<style type="text/css">
body {
	background-image:	url("#{request.contextPath}/resources/images/light-tile.gif");
}
</style>
	<title>Bem vindo ao Prolineaer</title>

</h:head>
<h:body>
	<p:growl id="messages" sticky="true" />
	<h:form prependId="false">
		<p:dialog header="ProLinear" visible="true" closable="false"
			draggable="false" resizable="false" width="430">
			<h:outputText value="Usuário ou senha incorretos!"
				rendered="#{param.erro}" style="color: darkred" />

			<h:panelGrid columns="2" cellpadding="5">
				<h:outputLabel for="j_username" value="Email: " />
				<h:inputText id="j_username" required="true"
					requiredMessage="Usuário é obrigatório" size="35" />

				<h:outputLabel for="j_password" value="Senha: " />
				<h:inputSecret id="j_password"  required="true"
					requiredMessage="Senha é obrigatória" />
			</h:panelGrid>
			<h:panelGrid columns="3" cellspacing="3" cellpadding="5">
				<h:commandButton value="Login" id="login" type="submit"
					actionListener="#{loginBean.doLogin}" />
				<h:commandLink immediate="true" value="Cadastre-se"
					action="cadastro" />
				<h:commandLink immediate="true" value="Esqueceu sua senha"
					action="redefine" />
			</h:panelGrid>

		</p:dialog>
	</h:form>
</h:body>
</html>